package com.mc.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mc.dao.newsandbulletinMapper;
import com.mc.model.newsandbulletin;
import com.mc.service.NewsandbulletService;
 @Service
public class NewsandbulletServiceImpl implements NewsandbulletService {

	 @Autowired private newsandbulletinMapper newsandbulletinMapper;
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(newsandbulletin record) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.insert(record);
	}

	@Override
	public int insertSelective(newsandbulletin record) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.insertSelective(record);
	}

	@Override
	public newsandbulletin selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(newsandbulletin record) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKeyWithBLOBs(newsandbulletin record) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.updateByPrimaryKeyWithBLOBs(record);
	}

	@Override
	public int updateByPrimaryKey(newsandbulletin record) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.updateByPrimaryKey(record);
	}

	@Override
	public void insertNorB(newsandbulletin record) {
		// TODO Auto-generated method stub
		newsandbulletinMapper.insertNorB(record);
	}

	@Override
	public List<newsandbulletin> selectAllNews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectAllNews();
	}

	@Override
	public List<newsandbulletin> selectAllBulletin() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectAllBulletin();
	}

	@Override
	public int selectAllNewsCount() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectAllNewsCount();
	}

	@Override
	public int selectAllBulletinCount() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectAllBulletinCount();
	}

	@Override
	public void updateNorB(newsandbulletin nb) {
		// TODO Auto-generated method stub
		newsandbulletinMapper.updateNorB(nb);
	}

	@Override
	public List<newsandbulletin> selectpNews(int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectpNews(start, size);
	}

	@Override
	public int selectpNewsCount() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectpNewsCount();
	}

	@Override
	public List<newsandbulletin> selectpBulletin(int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectpBulletin(start, size);
	}

	@Override
	public int selectpBuletinCount() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectpBuletinCount();
	}

	@Override
	public List<newsandbulletin> selecttopXb(int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selecttopXb(size);
	}

	@Override
	public List<newsandbulletin> selectindexnews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectindexnews();
	}

	@Override
	public List<newsandbulletin> selectdjzcnews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectdjzcnews();
	}

	@Override
	public List<newsandbulletin> selectstudentnews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectstudentnews();
	}

	@Override
	public List<newsandbulletin> selectstudentbulletins() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectstudentbulletins();
	}

	@Override
	public List<newsandbulletin> selectzsjynews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectzsjynews();
	}

	@Override
	public List<newsandbulletin> selectTopFiveNews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectTopFiveNews();
	}

	@Override
	public List<newsandbulletin> selectTopFilvezsjynews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectTopFilvezsjynews();
	}

	@Override
	public void clickNews(int id) {
		// TODO Auto-generated method stub
		newsandbulletinMapper.clickNews(id);
	}

	@Override
	public List<newsandbulletin> selectHotNB(String type) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectHotNB(type);
	}

	@Override
	public int countoftopb() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countoftopb();
	}

	@Override
	public void settopnbbytype(String type, int id) {
		// TODO Auto-generated method stub
		newsandbulletinMapper.settopnbbytype(type, id);
	}

	@Override
	public void canceltopnbbytype(String type, int id) {
		// TODO Auto-generated method stub
		newsandbulletinMapper.canceltopnbbytype(type, id);
	}

	@Override
	public List<newsandbulletin> selecttopn() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selecttopn();
	}

	@Override
	public List<newsandbulletin> selectdjNews(int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectdjNews(start, size);
	}

	@Override
	public int countofdjnews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofdjnews();
	}

	@Override
	public List<newsandbulletin> selectzsjyNews(int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectzsjyNews(start, size);
	}

	@Override
	public int countofzsjynews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofzsjynews();
	}

	@Override
	public List<newsandbulletin> selectxsgzNews(int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectxsgzNews(start, size);
	}

	@Override
	public int countofxsgznews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofxsgznews();
	}

	@Override
	public List<newsandbulletin> selectdjb(int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectdjb(start, size);
	}

	@Override
	public int countofdjb() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofdjb();
	}

	@Override
	public List<newsandbulletin> selectzsjyb(int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectzsjyb(start, size);
	}

	@Override
	public int countofzsjyb() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofzsjyb();
	}

	@Override
	public List<newsandbulletin> selectxsgzb(int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectxsgzb(start, size);
	}

	@Override
	public int countofxsgzb() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofxsgzb();
	}

	@Override
	public List<newsandbulletin> selectkynews(int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectkynews(start, size);
	}

	@Override
	public int countofkynews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofkynews();
	}

	@Override
	public int countofxsb() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofxsb();
	}

	@Override
	public List<newsandbulletin> selectxsb(int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectxsb(start, size);
	}

	@Override
	public void setimportantnews(int id) {
		// TODO Auto-generated method stub
		newsandbulletinMapper.setimportantnews(id);
	}

	@Override
	public void cancelimportantnews(int id) {
		// TODO Auto-generated method stub
		newsandbulletinMapper.cancelimportantnews(id);
	}

	@Override
	public int countoftopn() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countoftopn();
	}

	@Override
	public int countofimportantnews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofimportantnews();
	}

	@Override
	public List<newsandbulletin> selectallimportantnews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectallimportantnews();
	}

	@Override
	public List<newsandbulletin> selectnbbytype(String nbtype, int type,
			int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectnbbytype(nbtype, type, start, size);
	}

	@Override
	public int countofnb(String nbtype, int type) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofnb(nbtype, type);
	}

	@Override
	public List<newsandbulletin> newsbytype(int type) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.newsbytype(type);
	}

	@Override
	public List<newsandbulletin> searchnbs(String title, String type,
			int start, int size) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.searchnbs(title, type, start, size);
	}

	@Override
	public int countofresults(String title, String type) {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.countofresults(title, type);
	}

	@Override
	public List<newsandbulletin> selectallindexnews() {
		// TODO Auto-generated method stub
		return newsandbulletinMapper.selectallindexnews();
	}

}
